package org.ghost.wechat.platform.dto.wechat.media;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.ghost.wechat.platform.dto.WeChatErrorRspDTO;

/**
 * @author 01
 */
public class WeChatUploadMediaRspDTO extends WeChatErrorRspDTO {
    private static final long serialVersionUID = -4560818098444698527L;
    /**
     * 媒体文件类型，分别有图片（image）、语音（voice）、视频（video）和缩略图（thumb，主要用于视频与音乐格式的缩略图）
     */
    private String type;
    /**
     * 媒体文件上传后，获取标识
     */
    private String mediaId;
    /**
     * 媒体文件上传时间戳
     */
    private Long createdAt;


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getMediaId() {
        return mediaId;
    }

    @JsonProperty(value = "media_id")
    public void setMediaId(String mediaId) {
        this.mediaId = mediaId;
    }

    public Long getCreatedAt() {
        return createdAt;
    }

    @JsonProperty(value = "created_at")
    public void setCreatedAt(Long createdAt) {
        this.createdAt = createdAt;
    }

    @Override
    public String toString() {
        return "WeChatUploadMediaRspDTO{" +
                "type='" + type + '\'' +
                ", mediaId='" + mediaId + '\'' +
                ", createdAt=" + createdAt +
                ", errCode=" + errCode +
                ", errMsg='" + errMsg + '\'' +
                '}';
    }
}
